// part1:C05:ex5.19.cpp
//  find the shorter string, between two strings.
#include <iostream>
#include <string>

int main(void) {
  using namespace std;
  do {
    cout << "Enter two strings:\n";
    string str1, str2;
    cin >> str1 >> str2;
    if (str1.size() < str2.size()) {
      cout << "shorter one is : " << str1 << endl;
    } else if (str1.size() > str2.size()) {
      cout << "shorter one is : " << str2 << endl;
    } else {
      cout << "tow string are equal." << endl;
    }
  } while (cin);

  return 0;
}